import {createRouter,createWebHistory} from 'vue-router'
import Home from '@/pages/Home.vue'
import Record from '@/pages/Record.vue'

const routes = [
    {
        path:'/',
        name:'home',
        component:Home
    },
    {
        path:'/modal',
        name:'modal',
        component:()=>import('@/pages/Modal.vue')
    },
    {
        path:'/record',
        name:'record',
        component:Record
    },
    {
        path:'/children',
        name:'children',
        component:()=>import('@/pages/Children.vue')
    },
    {
        path:'/parent',
        name:'parent',
        component:()=>import('@/pages/Parent.vue')
    },
    {
        path:'/ai-chat',
        name:'aiChat',
        component:()=>import('@/pages/AiChat.vue')
    }
]
const router = createRouter({
    history:createWebHistory(),
    routes
})
export default router